class PatientDataList {
  int? total;
  List<PatientData>? list;

  PatientDataList({this.total, this.list});

  PatientDataList.fromJson(Map<String, dynamic> json) {
    if (json["total"] is int) {
      total = json["total"];
    }
    if (json["list"] is List) {
      list = json["list"] == null
          ? null
          : (json["list"] as List).map((e) => PatientData.fromJson(e)).toList();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["total"] = total;
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class PatientData {
  int? id;
  String? consumerNo;
  int? userId;
  String? nickName;

  String? gender;
  dynamic avatarUrl;
  dynamic patitentAvatarUrl;
  dynamic tagsFromDoctor;
  dynamic labelName;
  double? age;
  String? signStatus;

  PatientData(
      {this.id,
      this.consumerNo,
      this.userId,
      this.nickName,
      this.gender,
      this.avatarUrl,
      this.patitentAvatarUrl,
      this.tagsFromDoctor,
      this.labelName,
      this.age,
      this.signStatus});

  PatientData.fromJson(Map<String, dynamic> json) {
    if (json["id"] is int) {
      id = json["id"];
    }
    if (json["consumerNo"] is String) {
      consumerNo = json["consumerNo"];
    }
    if (json["userId"] is int) {
      userId = json["userId"];
    }
    if (json["nickName"] is String) {
      nickName = json["nickName"];
    }
    if (json["gender"] is String) {
      gender = json["gender"];
    }
    avatarUrl = json["avatarUrl"];
    patitentAvatarUrl = json["patitentAvatarUrl"];
    tagsFromDoctor = json["tagsFromDoctor"];
    labelName = json["labelName"];

    if (json["age"] is double) {
      age = json["age"];
    }
    if (json["signStatus"] is String) {
      signStatus = json["signStatus"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["consumerNo"] = consumerNo;
    _data["userId"] = userId;
    _data["nickName"] = nickName;
    _data["gender"] = gender;
    _data["avatarUrl"] = avatarUrl;
    _data["patitentAvatarUrl"] = patitentAvatarUrl;
    _data["tagsFromDoctor"] = tagsFromDoctor;
    _data["labelName"] = labelName;
    _data["age"] = age;
    _data["signStatus"] = signStatus;

    return _data;
  }
}
